package com.manage.common.core.enums;

import com.manage.common.core.exception.assertion.CommonExceptionAssert;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author zhangqing
 * @version V1.0
 * @Description 统一返回code
 * @date 7/12/2020 7:01 PM
 */
@Getter
@AllArgsConstructor
public enum CommonEnum implements CommonExceptionAssert {

    /**
     *
     */
    SUCCESS(0, "操作成功"),
    FAIL(1, "操作失败"),

    ACTIVE_PROFILE_TO_MANY(900, "运行的配置文件太多"),
    SERVER_ERROR(9999, "网络错误"),
    IO_EXCEPTION(901,"文件上传失败"),
    EXPORT_EXCEL_EXCEPTION(902,"导出excel异常");

    private final int code;
    private final String message;
}
